{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
    <!-- 会员列表 -->
    <div class="row wrapper border-bottom white-bg page-heading user-list">
        <div class="col-sm-4">
            <h2>用户列表</h2>
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="#">用户管理</a></li>
                <li><strong>用户列表</strong></li>
            </ol>
        </div>
        <div class="col-sm-8 ">
        </div>
    </div>
    <!-- 会员列表 -->
    <div class="wrapper wrapper-content">
        <div class="row">
        <!-- 统计部分 -->
            <div class="col-sm-6">
                <div class="panel panel-default" style="height:307px;">
                    <div class="panel-heading">数据统计</div>
                    <div class="panel-body">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>项目</th>
                                    <th>统计/人</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>用户总数</td>
                                    <td><i class="text-danger">{$count?$count:'0'}</i></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- 搜索部分 -->
            <div class="col-sm-6">
                <div class="panel panel-default">
                    <div class="panel-heading">用户查询</div>
                    <div class="panel-body">
                        <form class="form-horizontal search-form" action="" method="get" id="transmit">
                            <div class="form-group">
                                <label class="col-xs-2 control-label">用户昵称</label>
                                <div class="col-xs-10 ">
                                    <input type="text" class="form-control" name="nickname" value="{$post['nickname']?$post['nickname']:''}" placeholder="用户昵称" />
                                </div>
                            </div>
                           
                            <div class="form-group">
                                <label class="col-xs-2 control-label">手机号码</label>
                                <div class="col-xs-10 ">
                                    <input type="text" class="form-control" name="phone" value="{$post['phone']?$post['phone']:''}" placeholder="手机号码" />
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <a href="javascript:;" ><input type="button" value="搜索" class="search-btn mg-right-10 col-xs-offset-4 btn btn-primary user-search" /></a>&nbsp;&nbsp;
                            <a href="javascript:;" class="reset-search-btn btn btn-outline btn-default user-table">导出表格</a>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <!-- 表格主体 -->
            <table class="table table-bordered white-bg">
                <thead>
                    <tr>
                        <th>用户id</th>
                        <th>手机号</th>
                        <th>昵称</th>
                        <th>用户头像</th>
                        <th>用户邮箱</th>
                        <th>注册时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                  {volist name="list" id="v"}
                   <tr>
                       <td>{$v['user_id']}</td>
                       <td class="text-success">{$v['u_phone']}</td>
                       <td class="text-danger">{$v['u_nickname']}</td>
                       <td>
                           {empty name="$v['u_img']"}
                                 暂无头像
                           {else/}
                                <img src="{$v['u_img']}" style="width: 100px;"/>
                           {/empty}
                       </td>
                       <td >{$v['u_mail']}</td>
                       <td >{$v['u_addtime']}</td>
                       <td>
                           <a href="{:url('/auser/user_info',array('user_id'=>$v['user_id']))}" class="btn btn-xs btn-outline btn-primary">基本信息</a>&nbsp;&nbsp;
                       </td>
                   </tr>
                 {/volist}
                   
                </tbody>
            </table>
            <!-- 分页 -->
            <div class="btn-group">{$page}</div>
    </div>
</body>
</html>
{include file="include:js" /}